using System;
using NHibernate.Mapping.Attributes;

namespace Bussiness.Model
{
    [Serializable]
    public abstract class BaseModel
    {
        private readonly long _id;

        internal BaseModel() { }

        public BaseModel(long id)
        {
            _id = id;
        }

        [Id(0, Name = "Id", Column = "ID",Access = "nosetter.camelcase-underscore")]
        [Generator(1, Class = "identity")]
        public virtual long Id
        {
            get { return _id; }
        }
    }
}
